-- GENERATED SPELL FOR [Garneg Charskull] --


function spell0_2108(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2108', 1000, 1)
end

function spell1_2108(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(15039,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2108', 12000, 1)
end

function spell2_2108(pUnit, Event) --@Flame Spike,n/a--
pUnit:FullCastSpellOnTarget(6725,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2108', 12000, 1)
end

function Sorts_2108(pUnit, Event)
local choix_sorts_2108 = math.random(0, 2)
if choix_sorts_2108 == 0 then
pUnit:RegisterEvent('spell0_2108', 1, 1)
end
if choix_sorts_2108 == 1 then
pUnit:RegisterEvent('spell1_2108', 1, 1)
end
if choix_sorts_2108 == 2 then
pUnit:RegisterEvent('spell2_2108', 1, 1)
end
end

function mob2108_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2108', math.random(1500, 3000), 1)
end

function mob2108_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2108_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2108_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2108, 1, 'mob2108_Action')
RegisterUnitEvent(2108, 2, 'mob2108_Leave')
RegisterUnitEvent(2108, 3, 'mob2108_Kill')
RegisterUnitEvent(2108, 4, 'mob2108_Die')
